package com.hangxin.basic.util;

import com.hangxin.basic.model.LoginInfo;

public class UserContent
{

	static ThreadLocal sessionUser = new ThreadLocal();



	public static void setSessionUser(LoginInfo userLogin)
	{
		sessionUser.set(userLogin);
	}



	public static LoginInfo getSessionUser()
	{
		return (LoginInfo) sessionUser.get();
	}



	public static String getSessionUserName()
	{
		return getSessionUser().getUserName();
	}



	public static String getSessionRealName()
	{
		return getSessionUser().getUserName();
	}
}
